package com.xxh.dataaccess.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxh.dataaccess.dto.ContactMessage;
import com.xxh.dataaccess.dto.Contacts;
import com.xxh.dataaccess.entity.ChatMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (ChatMessage)表数据库访问层
 *
 * @author makejava
 * @since 2021-02-24 20:53:26
 */
public interface ChatMessageDao extends BaseMapper<ChatMessage> {
    List<Contacts> getContactsByUid(Integer uid);

    List<ContactMessage> pullMessage(@Param("uid") Integer uid , @Param("cid")Integer cid);
}
